package com.yunnuo.system.role.entity;

import com.yunnuo.system.comm.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Arrays;

/**
 * 角色表
 * Created by 魏洪福(15064000912@163.com) on  2018/5/25.
 */
@Entity
@Table(name = "SYS_ROLE")
public class Role extends IdEntity {

    //  角色名
    private String roleName;
    // 角色权限
    private String roleKey;
    //  角色排序
    private int orderNum;
    //  状态:0正常,1禁用
    private String roleStatus;
    // 用户是否存在此角色标识 默认不存在
    private String flag ;


    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public String getRoleStatus() {
        return roleStatus;
    }

    public void setRoleStatus(String roleStatus) {
        this.roleStatus = roleStatus;
    }



    public String getRoleKey() {
        return roleKey;
    }

    public void setRoleKey(String roleKey) {
        this.roleKey = roleKey;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleName='" + roleName + '\'' +
                ", roleKey='" + roleKey + '\'' +
                ", orderNum=" + orderNum +
                ", roleStatus='" + roleStatus + '\'' +
                ", flag='" + flag + '\'' +
                '}';
    }
}
